﻿using System;
using SR.SimpleTrack.Data;
using SR.SimpleTrack.Models;

namespace SR.SimpleTrack.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            //database initialization
            var db = new SimpleTrackContext();

            var workItem = new WorkItem
                               {
                                   ActualDuration = 5,
                                   ActualDurationType = DurationType.Hours,
                                   Archived = false,
                                   ItemType = ItemType.Feature,
                                   Name = "Test",
                                   CreatedDate = DateTime.Now,
                                   LastUpdate = DateTime.Now,
                                   StartedDate = DateTime.Now,
                                   CompletedDate = DateTime.Now
                               };
            db.WorkItems.Add(workItem);
            db.SaveChanges();
        }
    }
}
